using System;
using Castle.ActiveRecord;

namespace IronMis2.Models
{
    [ActiveRecord("provider")]
    public class Provider:ActiveRecordBase<Provider>
    {
        private Guid id;
        private string proId;
        private string proName;
        private string proVicegerent;
        private string proTelF;
        private string proTelS;
        private string proFax;
        private string proEmail;
        private string proAddr;
        private string proPostalcode;
        private string proWeb;
        private string proTaxNum;
        private string proBankNum;
        private string proBank;
        private string proRemark;

        [PrimaryKey(PrimaryKeyType.GuidComb,Column = "id")]
        public Guid Id
        {
            set { id = value; }
            get { return id; }
        }

        [Property(Column = "pro_id",SqlType = "char",Length = 10)]
        public string ProId
        {
            set { proId = value; }
            get { return proId; }
        }

        [Property(Column = "pro_name",SqlType = "varchar",Length = 50)]
        public string ProName
        {
            set { proName = value; }
            get { return proName; }
        }

        [Property(Column = "pro_vicegerent",SqlType = "varchar",Length = 50)]
        public string ProVicegerent
        {
            set { proVicegerent = value; }
            get { return proVicegerent; }
        }

        [Property(Column = "pro_tel_f",SqlType = "char",Length = 20)]
        public string ProTelF
        {
            set { proTelF = value; }
            get { return proTelF; }
        }

        [Property(Column = "pro_tel_s",SqlType = "char",Length = 20)]
        public string ProTelS
        {
            set { proTelS = value; }
            get { return proTelS; }
        }

        [Property(Column = "pro_fax",SqlType = "char",Length = 20)]
        public string ProFax
        {
            set { proFax = value; }
            get { return proFax; }
        }

        [Property(Column = "pro_email",SqlType = "varchar",Length = 50)]
        public string ProEmail
        {
            set { proEmail = value; }
            get { return proEmail; }
        }

        [Property(Column = "pro_addr",SqlType = "varchar",Length = 50)]
        public string ProAddr
        {
            set { proAddr = value;}
            get { return proAddr;}
        }

        [Property(Column = "pro_postalcode",SqlType = "char",Length = 10)]
        public string ProPostalcode
        {
            set { proPostalcode = value; }
            get { return proPostalcode; }
        }

        [Property(Column = "pro_web",SqlType = "varchar",Length = 50)]
        public string ProWeb
        {
            set { proWeb = value; }
            get { return proWeb; }
        }

        [Property(Column = "pro_tax_num",SqlType = "char",Length = 10)]
        public string ProTaxNum
        {
            set { proTaxNum = value; }
            get { return proTaxNum; }
        }

        [Property(Column = "pro_bank_num",SqlType = "char",Length = 10)]
        public string ProBankNum
        {
            set { proBankNum = value; }
            get { return proBankNum; }
        }

        [Property(Column = "pro_bank",SqlType = "varchar",Length = 50)]
        public string ProBank
        {
            set { proBank = value; }
            get { return proBank; }
        }

        [Property(Column = "pro_remark",SqlType = "varchar",Length = 50)]
        public string ProRemark
        {
            set { proRemark = value; }
            get { return proRemark; }
        }
    }
}
